import { Routes, Route } from 'react-router-dom'
import { routers } from 'routers'
import styles from './index.module.scss'

export default function Main() {
  return (
    <div className={styles.main}>
      <Routes>
        {routers.map((item) => (
          <Route key={item.path} path={item.path} element={item.element} />
        ))}
      </Routes>
    </div>
  )
}
